#
#
CLEANFILES = *~
DISTCLEANFILES = *~

CLX_HOME ?= @prefix@
clx_includedir = @prefix@/include/clx

INCLUDES = -I../libbase -I../libsr -I../libebc -I../libedb

clx_include_HEADERS = libECM.h

if ECM_OS_AIX

ECM_LIBADD = ../libedb/libedb.la ../libebc/libebc.la ../libsr/libsr.la ../libbase/libbase.la
ECM_LDFLAGS = -no-undefined

else

if ECM_DEBUG
BFD = -lbfd @BFD_DEP_LIBS@
endif

ECM_LIBADD = ../libedb/libedb.la ../libebc/libebc.la ../libsr/libsr.la ../libbase/libbase.la
ECM_LDFLAGS =

endif

EXPORTS_SYM = exports.sym

lib_LTLIBRARIES = libECM.la
libECM_la_SOURCES = libECM.c libECM.h

libECM_la_LIBADD = $(ECM_LIBADD)

libECM_la_LDFLAGS = $(ECM_LDFLAGS) \
	-rpath $(CLX_HOME)/lib -export-symbols $(EXPORTS_SYM) -lpthread -lreadline -lhistory -lcurses -lm @LINK_DL@ $(BFD)

libECM_la_DEPENDENCIES = $(EXPORTS_SYM) ../libbase/libbase.la \
	../libsr/libsr.la ../libebc/libebc.la \
	../libedb/libedb.la

EXTRA_DIST = exports.sym
